<?
	include '../model/database.php';
	include '../model/xl_nguoi_dung.php';
	$xl_nguoi_dung = new xl_nguoi_dung();
	
	$newp = $_REQUEST['newpass'];
	$id = $_REQUEST['id'];
	
	
	if(	$xl_nguoi_dung->newPass($newp,$id)){
		$data = array("success"=>true);
	}
	else{
		$data = array("success"=>false);
	}
	echo json_encode($data);
?>